import request from '@/utils/request'

// 查询联动事件记录列表
export function listRecord(query) {
  return request({
    url: '/linkage/record/list',
    method: 'get',
    params: query
  })
}

// 查询联动事件记录详细
export function getRecord(linkageEventRecordId) {
  return request({
    url: '/linkage/record/' + linkageEventRecordId,
    method: 'get'
  })
}

// 新增联动事件记录
export function addRecord(data) {
  return request({
    url: '/linkage/record',
    method: 'post',
    data: data
  })
}

// 修改联动事件记录
export function updateRecord(data) {
  return request({
    url: '/linkage/record',
    method: 'put',
    data: data
  })
}

// 删除联动事件记录
export function delRecord(linkageEventRecordId) {
  return request({
    url: '/linkage/record/' + linkageEventRecordId,
    method: 'delete'
  })
}
